package com.prs.crm.domain.approval;

import java.sql.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
@Entity
@Table(name="app_chailv")
public class ChaiLv extends BaseEntity{
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	/**出发日期*/
	private String startDate;
	/**回归日期*/
	private String endDate;
	/**到达地*/
	private String arrival;
	/**机票费*/
	private Double plane;
	/**车船费*/
	private Double car;
	/**卧铺费*/
	private Double sleep;
	/**夜行车补助*/
	private Double night;
	/**市内交通费*/
	private Double city;
	/**住宿费*/
	private Double zhusu;
	/**出差补助*/
	private Double buzhu;
	/**其他*/
	private Double qita;
	/**合计*/
	private Double heji;
	@ManyToOne(cascade={CascadeType.ALL})
	@JoinColumn(name="application_id")
	private Application application;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getArrival() {
		return arrival;
	}
	public void setArrival(String arrival) {
		this.arrival = arrival;
	}
	public Double getPlane() {
		return plane;
	}
	public void setPlane(Double plane) {
		this.plane = plane;
	}
	public Double getCar() {
		return car;
	}
	public void setCar(Double car) {
		this.car = car;
	}
	public Double getSleep() {
		return sleep;
	}
	public void setSleep(Double sleep) {
		this.sleep = sleep;
	}
	public Double getNight() {
		return night;
	}
	public void setNight(Double night) {
		this.night = night;
	}
	public Double getCity() {
		return city;
	}
	public void setCity(Double city) {
		this.city = city;
	}
	public Double getZhusu() {
		return zhusu;
	}
	public void setZhusu(Double zhusu) {
		this.zhusu = zhusu;
	}
	public Double getBuzhu() {
		return buzhu;
	}
	public void setBuzhu(Double buzhu) {
		this.buzhu = buzhu;
	}
	public Double getQita() {
		return qita;
	}
	public void setQita(Double qita) {
		this.qita = qita;
	}
	public Double getHeji() {
		return heji;
	}
	public void setHeji(Double heji) {
		this.heji = heji;
	}
	public Application getApplication() {
		return application;
	}
	public void setApplication(Application application) {
		this.application = application;
	}
	
}
